﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Infinity.BusinessLayer
{
    public class CourseViewModel
    {
        [Display(Name = "Course id")]
        public decimal CourseID { get; set; }

        [Required(ErrorMessage = "Name is required.")]
        [Display(Name = "Course Name")]
        public string Course_Name { get; set; }

        [Display(Name = "Category")]
        [Required]
        public decimal CategoryID{ get; set; }//

        [Required(ErrorMessage = "Number Of Hours is required.")]
        [Display(Name = "Number Of Hours")]
        public Nullable<int> Official_crs_hrs { get; set; }

         [Required]
        public bool Exam { get; set; }

         //material Certification
         [Required(ErrorMessage = "Material Price is required.")]
        [Display(Name = "Material Price")]
        public double Material { get; set; }

        [Required(ErrorMessage = "certificate Price is required.")]
        [Display(Name = "certificate Price")]
        public double Certificate { get; set; }

        [Display(Name = "Course Outline")]
        List<CourseGroup_typeViewModel> _course_grouptype = new List<CourseGroup_typeViewModel>();
        public List<CourseGroup_typeViewModel> course_grouptype { get { return _course_grouptype; } set { _course_grouptype = value; } }

       [Display(Name = "Course Outline")]
         List<OutlineViewModel> _Outlines = new List<OutlineViewModel>();
        public List<OutlineViewModel> Outlines { get { return _Outlines; } set { _Outlines = value; } }

       

    }
}